#ifndef __TOOL_H__
#define __TOOL_H__

#include "ref.h"

typedef void (*Callback)(void*);

typedef struct {
    uint8_t hour;
    uint8_t minute;
    uint8_t second;
} Time;

typedef enum {
    NORMAL,
    COUNTDOWN
} TimeMode;

void Delay(uint32_t ms);

uint16_t Point_Distance(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2);

Time Time_Make(uint32_t seconds);

Time Time_MakeLocal();

uint32_t Time_ToSeconds(Time time);

#endif /* __TOOL_H__ */
